<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <button style="margin: auto 430px "><a th:href="addAct">增加</a></button>
    <table align="center" border="1" cellpadding="0" cellspacing="0">
        <tr>
            <th>序号</th>
            <th>活动类型</th>
            <th>活动开始时间</th>
            <th>活动结束时间</th>
            <th>活动地点</th>
            <th>活动人数</th>
            <th colspan="2">操作</th>
        </tr>

        <tr th:each="act : ${activities}">
            <td th:text="${act.id}"></td>
            <td th:text="${act.type}"></td>
            <td id="start" th:text="${#dates.format(act.startTime,'yyyy-MM-dd HH:mm:ss')}"></td>
            <td id="end" th:text="${#dates.format(act.endTime,'yyyy-MM-dd HH:mm:ss')}"></td>
            <td th:text="${act.place}"></td>
            <td th:text="${act.humanNum}"></td>
            <td>

            <td th:if="${act.startFlag} and ${act.isEndFlag()}">

               <a th:href=" 'delById/'+${act.id}" >删除</a>

            </td>
            <td th:if="!${act.startFlag} and !${act.isEndFlag()}">
                <a th:href=" 'findById/'+${act.id}" >修改</a>
            </td>
        </tr>
    </table>
</div>

</body>

</html>